package by.vkhalko.asamo.services;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import by.vkhalko.asamo.datamodel.Contact;
import by.vkhalko.asamo.datamodel.Person;

public interface ContactService {

	Contact get(Long id);

	@Transactional
	void saveOrUpdate(Contact contact);

	@Transactional
	void delete(Contact contact);

	@Transactional
	void deleteAll();

	List<Contact> getAllContacts();

	List<Contact> getAllByPerson(Person person);

}
